<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/10/10
  Time: 16:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.css">

    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <link href="${pageContext.request.contextPath}/static/js/bootstrap.min.js"/>

</head>
<body>
    <div>
        <span>
            <c:if test="${empty user}">
                <a href="login.jsp">去登陆</a>
            </c:if>
            <c:if test="${not empty user}">
                <h2>欢迎${user.name}来到网上银行</h2><br>
                <a href="#">完善个人信息</a>
            </c:if>
        </span>
        <hr>
        <div id = "d2">
            <c:if test="${empty account}">
                <a href="openaccount.jsp">亲！！您当前还没有开户哦</a>
            </c:if>
            <c:if test="${not empty account}">
                <c:forEach items="${sessionScope.cards}" var="cards">
                    <div class="list-group">
                            <%--<input type="hidden" >--%>
                        <a href="${pageContext.request.contextPath}/userServlet?action=findAccount&pid=${product.pid}&where=1" class="list-group-item active">
                            <h2 class="list-group-item-heading">${product.prate}</h2>
                            <h4>${product.pname}</h4>
                            <br>
                            <h4>业绩基准&nbsp;&nbsp;&nbsp;${product.beginPrice}元起购|最低持有${product.limitDate}天</h4>
                            <p class="list-group-item-text">...</p>
                        </a>
                    </div>
                </c:forEach>
            </c:if>

        </div>

    </div>
</body>
</html>
